import SvgIcon from './SvgIcon/index.vue'
import UploadFileSingle from './UploadFileSingle/index.vue'

import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const allGlobalComponents = { SvgIcon, UploadFileSingle }

export default {
    install(app) {
        Object.keys(allGlobalComponents).forEach((key) => {
            app.component(key, allGlobalComponents[key])
        })
        
        for (const [key,component] of Object.entries(ElementPlusIconsVue)) {
            app.component(key, component)
        }
    }
}